#include "pch.h"
#include<cstringt.h>
#include "Manager_ProgramPath.h"

Manager::ProgramPath::ProgramPath()
{
	GetModuleFileName(NULL, _strPath.GetBuffer(MAX_PATH), MAX_PATH);
	_strPath.ReleaseBuffer(MAX_PATH);
	int Pos = _strPath.ReverseFind('\\');
	_strPath = _strPath.Left(Pos + 1);
}

CString Manager::ProgramPath::getPath()
{
	return _strPath;
}

CString Manager::ProgramPath::Path()
{
	CString _strPath;
	GetModuleFileName(NULL, _strPath.GetBuffer(MAX_PATH), MAX_PATH);
	_strPath.ReleaseBuffer(MAX_PATH);
	int Pos = _strPath.ReverseFind('\\');
	_strPath = _strPath.Left(Pos + 1);
	return _strPath;
}
